<?php /* Smarty version 2.6.18, created on 2010-03-09 17:06:23
         compiled from fmaList.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'fmaList.tpl', 67, false),)), $this); ?>
<div id="main_content">
    	<h1>FMA List</h1>
			<div class="blue">
        	    <form action="" id="filterForm" >
        	        <table>
        	            <tr>
        					<td><label for="filter">Country:</label></td>
        					<td><select name="user[country]" onchange="doajaxAction('/account/fmaList/reload/1',1,'result',document.getElementById('filterForm'))">
        						<option value="">All Countries</option>
        						<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['country']):
?>
        							<option value="<?php echo $this->_tpl_vars['country']['country_code']; ?>
"><?php echo $this->_tpl_vars['country']['country']; ?>
</option>
        						<?php endforeach; endif; unset($_from); ?>
        					</select></td>
        				</tr>
        				<tr>
        					<td><label for="filter">Status:</label></td>
        					<td>
        						<select name="user[status]" onchange="doajaxAction('/account/fmaList/reload/1',1,'result',document.getElementById('filterForm'))">
        							<option value="">Any Status</option>
        							<option value="0">Active Only</option>
        							<option value="1">Inactive Only</option>
        						</select>				
        					</td>
        				</tr>
        	            <tr>
        					<td><label for="filter">MAC Certified:</label></td>
        					<td>
        						<select name="user[mac]" onchange="doajaxAction('/account/fmaList/reload/1',1,'result',document.getElementById('filterForm'))">
        							<option value="">Show All</option>
        							<option value="1">Certified Only</option>
        							<option value="0">Non-Certified Only</option>
        						</select>				
        					</td>
        				</tr>
        	            <tr>
        					<td><label for="filter">Name Filter:</label></td>
        					<td>
        						<select name="user[filter]" onchange="doajaxAction('/account/fmaList/reload/1',1,'result',document.getElementById('filterForm'))">
        							<option value="">No Filter</option>
        							<option value="#">#</option>
        							<option value="a">A</option><option value="b">B</option><option value="c">C</option><option value="d">D</option><option value="e">E</option><option value="f">F</option><option value="g">G</option><option value="h">H</option><option value="i">I</option><option value="j">J</option><option value="k">K</option><option value="l">L</option><option value="m">M</option><option value="n">N</option><option value="o">O</option><option value="p">P</option><option value="q">Q</option><option value="r">R</option><option value="s">S</option><option value="t">T</option><option value="u">U</option><option value="v">V</option><option value="w">W</option><option value="x">X</option><option value="y">Y</option><option value="z">Z</option>
        						</select>				
        					</td>
        				</tr>
        	        </table>
        	    </form>
        	</div>
       
            <div id="result">
				<div>
					<table border="0" width="100%">
					<tr><td colspan="10"><hr></td></tr>
					<tr>
						<td>Name</td>
						<td>Area</td>
						<td align="center">MAC Cert</td>
						<td>Address</td>
						<td>Province</td>
						<td>Country</td>
						<td>Phone</td>
						<td>FAX</td>
						<td>Email</td>
						<td align="center">Inactive</td>
					</tr>
					<tr><td colspan="10"><hr></td></tr>
					<?php $_from = $this->_tpl_vars['fmaList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['fma']):
?>
					<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
						<td><?php echo $this->_tpl_vars['fma']['fishing_area_name']; ?>
</td>
						<td><?php echo $this->_tpl_vars['fma']['area']; ?>
</td>
						<td align="center"><?php echo $this->_tpl_vars['fma']['mac_certified']; ?>
</td>
						<td><?php echo $this->_tpl_vars['fma']['address']; ?>
</td>
						<td><?php echo $this->_tpl_vars['fma']['province']; ?>
</td>
						<td><?php echo $this->_tpl_vars['fma']['country']; ?>
</td>
						<td><?php echo $this->_tpl_vars['fma']['phone']; ?>
</td>
						<td><?php echo $this->_tpl_vars['fma']['fax']; ?>
</td>
						<td><?php echo $this->_tpl_vars['fma']['email']; ?>
</td>
						<td align="center"><?php echo $this->_tpl_vars['fma']['inactive']; ?>
</td>
					</tr>
					<?php endforeach; endif; unset($_from); ?>
					</table>
				</div>
            </div><!-- results -->
            
</div>
<script language="javascript">
<?php echo '
'; ?>

</script>